<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>vue中可为同一元素绑定多个事件</title>
    <script src="../application/vue.js"></script>
</head>
<body>
    <div class="app">
        <input type="button" value="多事件绑定" @click="fun1()" @focus="fun2()" @blur="fun3()">
    </div>
</body>
<script>
    new Vue( {
        el:".app",
        data:{

        },
        methods:{
            fun1(){
                console.log("click事件触发");
            },
            fun2(){
                console.log("focus事件触发");
            },
            fun3(){
                console.log("blur事件触发");
            }
        }
    })
</script>
</html>